package top.albertiy.适配器模式.类的适配器模式;

import top.albertiy.适配器模式.Source;
import top.albertiy.适配器模式.Targetable;

/** 适配器类继承Source类，实现Targetable接口 */
public class Adapter extends Source implements Targetable {

    @Override
    public void method2() {
        System.out.println("this is the targetable method!");
    }
}
